import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
import {postRequest} from "./util/api";
import {getRequest} from "./util/api";
import {deleteRequest} from "./util/api";
import {putRequest} from "./util/api";
import './assets/gload.css';
import {downloadRequest} from "./util/download";
import './assets/iconfont/iconfont.css';
import VForm from 'vform-builds';  //引入VForm库
import 'vform-builds/dist/VFormDesigner.css';  //引入VForm样式
import BaidiMap from 'vue-baidu-map';
import Print from '@/plus/print.js';

Vue.use(Print);


Vue.use(BaidiMap, {
  ak: 'iu8YjMPDIqP5MCSLeSlCTCkVGT9xiO0Q'
})


Vue.config.productionTip = false;
//axios.defaults.baseURL='/api';
Vue.use(ElementUI,{size: 'small'});

Vue.use(ElementUI);

Vue.use(VForm);

Vue.prototype.$http = axios;
Vue.prototype.postRequest=postRequest;
Vue.prototype.putRequest=putRequest;
Vue.prototype.getRequest=getRequest;
Vue.prototype.deleteRequest=deleteRequest;
Vue.prototype.downloadRequest=downloadRequest;

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
